/*
 * @version: 1.0
 * @Author: zhl
 * @Date: 2021-10-11 14:16:28
 * @LastEditors: zhl
 * @LastEditTime: 2021-10-11 14:38:56
 * @Description: 文件实现描述
 */

#include "dlt698_db.h"
#include "dbif.h"

void add_interaction_log(int64_t dev_id, int64_t task_id, int direction, uint64_t exec_time, std::string &content){
    DEV_INTERACTIVE_MSG iMsg;
    INTERACTIVE_MESSAGE msg;
    iMsg.id = -1;
    msg.task_id = task_id;
    msg.direction = direction;
    msg.execution_time = exec_time;
    msg.content = content;
    iMsg.dev_id = dev_id;
    iMsg.msgs.push_back(msg);
    insert_log(iMsg);
}


